// @Date         2021-12-08
// @Author       Aaron Zhang
// @Description
// @FileName      base_model.go

package model

import (
	"gorm.io/gorm"
	"time"
)

// BaseModel 每个班都需要有的三个字段
type BaseModel struct {
	ID        uint           `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `json:"createdAt"`
	UpdatedAt time.Time      `json:"updatedAt"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"`
}
